//
//  Common.swift
//  HotNews
//
//  Created by yang on 2017/9/24.
//  Copyright © 2017年 成品家（北京）网路科技有限公司. All rights reserved.
//

import Foundation

/// @param selectedIndex    选中照片索引
/// @param urls             浏览照片 URL 字符串数组
/// @param parentImageViews 父视图的图像视图数组，用户展现和解除转场动画参照
let PhotoBrowserNotification = "PhotoBrowserNotification"
let PhotoBrowserSelectedIndexKey = "PhotoBrowserSelectedIndexKey"
let PhotoBrowserUrlsKey = "PhotoBrowserUrlsKey"
let PhotoBrowserParentImageViewsKey = "PhotoBrowserParentImageViewsKey"

// MARK: 全局通知的定义
let UserShouldLoginNotification = "UserShouldLoginNotification"

//用户登录成功通知
let UserLoginSuccessedNotification = "UserLoginSuccessedNotification"

//沙盒路径
let kDocumentPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0]

//全屏大小
let kMainScreenBounds = UIScreen.main.bounds

//设备宽度
let kDeviceWidth = kMainScreenBounds.size.width

//设备高度
let kDeviceHeight = kMainScreenBounds.size.height

// MARK: 应用程序信息
//地址链接
let OAuthUrlString = "https://api.weibo.com/oauth2/authorize"

//应用AppKey
let SinaAppKey = "3198507748"

//AppSecret
let SinaAppSecret = "8819f11b11275b59fe6d0b0bb7b87e11"

//回调地址
let SinaAppRedirect_uri = "https://www.baidu.com/"

// MARK: 微博配图视图的常量大小
//外部间距
let kPictureViewOutterMargin = CGFloat(12)

//内部间距
let kPictureViewInnerMargin = CGFloat(3)

//图片宽度
let kPictureViewWidth = kDeviceWidth - 2 * kPictureViewOutterMargin
//每个item的宽度
let kPictureItemWidth = (kPictureViewWidth - 2 * kPictureViewInnerMargin)/3

